/********************************************************************
  Copyright by PCI, 2002-10-08
  File Name: db_ppm_offer_price_plan.cxx
  Created Date: 2002-10-08 
  Author: Machine
  Version: 1.0 
  Last Version Date: 
  Version Date:
*******************************************************************/
/********************************************************************
  Copyright by PCI, 2002-10-08
  Class Name: CTable_PPM_OFFER_PRICE_PLAN
  Created Date: 2002-10-08 
  Author: Machine
  Defined File: db_ppm_offer_price_plan.hxx
  Last Version Date: 
  Version Date:
*******************************************************************/
#include "table_ppm.h"

CTable_PPM_OFFER_PRICE_PLAN::CTable_PPM_OFFER_PRICE_PLAN( )
 :NPCRecordSet( )
{
  setTableName( "PPM_OFFER_PRICE_PLAN" );
  prepareTable();
  prepareQuery();
 
  ID.setField( "ID", DATA_DOUBLE, 22, 1 );
  makeTableItem( ID );
  makeKeyItem( ID ); 
  OFFER_ID.setField( "OFFER_CD", DATA_CHAR, 20, 0 );
  makeTableItem( OFFER_ID );
  PRICE_ID.setField( "PRICE_ID", DATA_CHAR, 20, 0 );
  makeTableItem( PRICE_ID );
  APP_ID.setField( "APP_ID", DATA_CHAR, 20, 0 );
  makeTableItem( APP_ID );
  CREATE_DATE.setField( "CREATE_DATE", DATA_DATETIME, 7, 0 );
  makeTableItem( CREATE_DATE );
  MODIFY_DATE.setField( "MODIFY_DATE", DATA_DATETIME, 7, 0 );
  makeTableItem( MODIFY_DATE );
  STATE.setField( "STATE", DATA_CHAR, 10, 0 );
  makeTableItem( STATE );
  REMARK.setField( "REMARK", DATA_CHAR, 500, 0 );
  makeTableItem( REMARK );
}


CTable_PPM_OFFER_PRICE_PLAN::CTable_PPM_OFFER_PRICE_PLAN( NPConnection& pcldb )
 :NPCRecordSet( pcldb )
{
  setTableName( "PPM_OFFER_PRICE_PLAN" );
  prepareTable();
  prepareQuery();
 
  ID.setField( "ID", DATA_DOUBLE, 22, 1 );
  makeTableItem( ID );
  makeKeyItem( ID );
  OFFER_ID.setField( "OFFER_CD", DATA_CHAR, 20, 0 );
  makeTableItem( OFFER_ID );
  PRICE_ID.setField( "PRICE_ID", DATA_CHAR, 20, 0 );
  makeTableItem( PRICE_ID );
  APP_ID.setField( "APP_ID", DATA_CHAR, 20, 0 );
  makeTableItem( APP_ID );
  CREATE_DATE.setField( "CREATE_DATE", DATA_DATETIME, 7, 0 );
  makeTableItem( CREATE_DATE );
  MODIFY_DATE.setField( "MODIFY_DATE", DATA_DATETIME, 7, 0 );
  makeTableItem( MODIFY_DATE );
  STATE.setField( "STATE", DATA_CHAR, 10, 0 );
  makeTableItem( STATE );
  REMARK.setField( "REMARK", DATA_CHAR, 500, 0 );
  makeTableItem( REMARK );
}

CTable_PPM_OFFER_PRICE_PLAN::~CTable_PPM_OFFER_PRICE_PLAN( )
{
    close();
}

